﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TemplateAdmin.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="AirlineProject.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Formpayment
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<table class="listing" cellpadding="0" cellspacing="0" width="30">
					<tr>
						<th>Type Id</th>
						<th>Flight id</th>
                        <th>Option</th>
                        
					</tr>
					
                    <%
                        DataModels spm = new DataModels();
                        List<formpayment> fp = spm.ListFormpayment();
                        foreach (formpayment ds in fp)
                        {
                         %>
                        <tr>
                     
						<td><%= ds.payment_id %></td>
						<td><%= ds.payment_name %></td>
                        <td><a href="<%= Url.Action("addformpayment","Add") %>"><img src="../../../../Content/admin/images/user_add.png"  title="Show profile" width="16" height="16" /></a><a href="<%=Url.Action("editformpayment/"+ds.payment_id,"edit") %>"><img src="../../../../Content/admin/images/user_edit.png" title="Edit user" width="16" height="16" /></a><a href="<%= Url.Action("deleteformpayment/"+ds.payment_id,"templateadmin") %>"><img src="../../../../Content/admin/images/user_delete.png" title="Delete user" width="16" height="16" /></a></td>
                        </tr>
        
                      <%  }%>
        
					
				</table>
</asp:Content>
